//
//  CZSettingItem.m
//  0908网易彩票01
//
//  Created by Apple on 15/9/8.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "ZDSettingItem.h"

@implementation ZDSettingItem

+ (instancetype)settingItemWithIcon:(NSString *)icon andTitle:(NSString *)title
{
    ZDSettingItem *item = [[self alloc] init];
    
    item.icon = icon;
    item.title = title;
    
    return item;
}

+ (instancetype)settingItemWithIcon:(NSString *)icon andTitle:(NSString *)title andClass:(Class)itemClass
{
    ZDSettingItem *item = [self settingItemWithIcon:icon andTitle:title];
    
    item.itemClass = itemClass;
    
    return item;
}

+ (instancetype)settingItemWithTitle:(NSString *)title andClass:(Class)itemClass
{
    return [self settingItemWithIcon:nil andTitle:title andClass:itemClass];
}

+ (instancetype)settingItemWithTitle:(NSString *)title andDetailText:(NSString *)detailText
{
    ZDSettingItem *item = [self settingItemWithIcon:nil andTitle:title];
    
    item.detailText = detailText;
    
    return item;
}

//+ (instancetype)settingItemWithTitle:(NSString *)title andTimeLabel:(NSString *)timeLabel
//{
//    CZSettingItem *item = [self settingItemWithIcon:nil andTitle:title];
//    
//    item.timeLabel = timeLabel;
//    
//    return item;
//}

+ (instancetype)settingItemWithTitle:(NSString *)title
{
    return [self settingItemWithIcon:nil andTitle:title];
}

@end
